package com.bbms.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 读者信息实体类
 * @author Administrator
 *
 */
@Entity
@Table(name="bbms_user_reader")
public class Reader implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="id")
	private int id;
	
	@Column(name="user_info_id")
	private Integer userInfoId;
	
	@Column(name="category_id")
	private Integer categoryId;
	
	@Column(name="borrow_books_num")
	private int borrowBooksNum;
	
	@Column(name="borrow_num")
	private int borrowNum;
	
	@Column(name="balance")
	private double balance;

	public Reader() {
		super();
	}

	public Reader(int id, int userInfoId, int categoryId, int borrowBooksNum, int borrowNum, double balance) {
		super();
		this.id = id;
		this.userInfoId = userInfoId;
		this.categoryId = categoryId;
		this.borrowBooksNum = borrowBooksNum;
		this.borrowNum = borrowNum;
		this.balance = balance;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Integer getUserInfoId() {
		return userInfoId;
	}

	public void setUserInfoId(Integer userInfoId) {
		this.userInfoId = userInfoId;
	}

	public Integer getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public int getBorrowBooksNum() {
		return borrowBooksNum;
	}

	public void setBorrowBooksNum(int borrowBooksNum) {
		this.borrowBooksNum = borrowBooksNum;
	}

	public int getBorrowNum() {
		return borrowNum;
	}

	public void setBorrowNum(int borrowNum) {
		this.borrowNum = borrowNum;
	}

	public double getBalance() {
		return balance;
	}

	public void setBalance(double balance) {
		this.balance = balance;
	}

	@Override
	public String toString() {
		return "Reader [id=" + id + ", userInfoId=" + userInfoId + ", categoryId=" + categoryId + ", borrowBooksNum="
				+ borrowBooksNum + ", borrowNum=" + borrowNum + ", balance=" + balance + "]";
	}
	
	
	

}
